<!--<?php
# MetInfo Enterprise Content Management System 
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. ed.
require_once template('head');
echo <<<EOT
-->
</head>
$listjs
<body>
<!--
EOT;
$title="<a href='index.php?anyid={$anyid}&lang={$lang}&class1={$class1}'>{$met_class[$class1][name]}</a>";
$title.=$action=='editor'?" > {$lang_editor}{$lang_content}":" > {$lang_add}{$lang_content}";
require_once template('metlangs');
echo <<<EOT
-->
<form  method="POST" name="myform" action="save.php?anyid={$anyid}&action=$action" target="_self">
		<input name="class1" type="hidden" value="$class1">
		<input name="id" type="hidden" value="$id">
		<input name="lang" type="hidden"   value="$lang">
		<input name="filenameold" type="hidden"  value="$news_list[filename]">
		<input name="updatetimeold" type="hidden"  value="$news_list[updatetime]">
		<input name="page" type="hidden"  value="$page">
		<input type="hidden" name="no_order" value="$news_list[no_order]" />
		<input type="hidden" name="cengci" value="$cengci" />
		<table cellpadding="2" cellspacing="1" class="table">
		  <tr> 
            <td class="text"><span class="bi_tian">*</span>{$lang_category}：</td>
            <td colspan="2" class="input">
<!--
EOT;
if(count($met_class22[$class1])){
echo <<<EOT
-->	
<select name="class2" onChange="changelocation($(this))" class="noselect">
<option value=0 {$class2x[0]}>{$lang_modClass2}</option>
<!--
EOT;
foreach($met_class22[$class1] as $key=>$val2){
$k=$val2[id];
echo <<<EOT
-->			
<option  value="$val2[id]" {$class2x[$k]}>$val2[name]</option>
<!--
EOT;
}
echo <<<EOT
-->
              </select>
			<select name="class3" onChange="changelocation2($(this))" class="noselect"> 
			<option value=0 {$class3x[0]}>{$lang_modClass3}</option>
<!--
EOT;
foreach($met_class3[$news_list[class2]] as $key=>$val3){
$k=$val3[id];
echo <<<EOT
-->			
<option  value="$val3[id]" {$class3x[$k]}>$val3[name]</option>
<!--
EOT;
}
echo <<<EOT
-->			
             </select>
<!--
EOT;
}else{
echo <<<EOT
-->		 
		 <font color="#FF0000">{$met_class[$class1][name]}</font>
<!--
EOT;
}
if($met_autothumb_ok!=1)
$styletip="style='display:none;'";
echo <<<EOT
-->
		 </td>
          </tr>
		  <tr> 
            <td class="text"><span class="bi_tian">*</span>{$lang_title}：</td>
            <td colspan="2" class="input"> <input name="title" type="text" class="text nonull" value="$news_list[title]"></td>
          </tr>
		  <tr>
			<td class="text">{$lang_article1}</td>
			<td class="input">
<!--
EOT;
if($metadmin['newscom']){
echo <<<EOT
-->
				<label><input name="com_ok" type="checkbox" class="checkbox" value="1" {$com_ok}>{$lang_recom}</label>&nbsp;&nbsp;&nbsp;
<!--
EOT;
}
echo <<<EOT
-->	
				<label><input name="top_ok" type="checkbox" class="checkbox" value="1" {$top_ok}>{$lang_top}</label>&nbsp;&nbsp;&nbsp;
<!--
EOT;
if($metadmin['newsimage']){
echo <<<EOT
-->
				<label>
				<input name="img_ok" type="checkbox" value="1" class="checkbox" onclick="showclass(1)" {$img_ok} />{$lang_article2}</label>&nbsp;&nbsp;&nbsp;&nbsp;
<!--
EOT;
}
echo <<<EOT
-->
<!--
EOT;
if($met_wap && $met_wap_ok){
echo <<<EOT
-->	
				<label><input name="wap_ok" type="checkbox" class="checkbox" value="1" {$wap_ok}>{$lang_article3}</label>&nbsp;&nbsp;&nbsp;
<!--
EOT;
}
echo <<<EOT
-->
			</td>
		  </tr>
<!--
EOT;
if($metadmin[newsimage]){
echo <<<EOT
-->
		  <tr id="class_1_1" style="display:none"> 
            <td class="text">{$lang_modimgurl}：</td>
            <td colspan="2" class="input upload"> 
				<input name="imgurl" type="text" class="text" size="30" value="$news_list[imgurl]"> 
				<input name="met_upsql" type="file" id="file_upload" />
				<span class="tips" {$styletip}>{$lang_modimgauto}</span>
			</td>
          </tr> 
		  <tr id="class_1_2" style="display:none"> 
            <td class="text">{$lang_modimgurls}：</td>
            <td colspan="2" class="input upload"> 
				<input name="imgurls" type="text" class="text" size="30"  value="$news_list[imgurls]">
				<input name="met_upsql1" type="file" id="file_upload1" />
			</td>
          </tr>
<script type="text/javascript" src="{$img_url}/js/uploadify/swfobject.js"></script>
<script type="text/javascript" src="{$img_url}/js/uploadify/jquery.uploadify.v2.1.4.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	metuploadify('#file_upload','big_wate_img','imgurl-imgurls',2);
	metuploadify('#file_upload1','small','imgurls');
});
</script>
<!--
EOT;
}
echo <<<EOT
-->	
		  <tr> 
            <td class="text">{$lang_modpublish}：</td>
            <td colspan="2" class="input"><input name="issue" type="text" class="text mid" size="10" value="$news_list[issue]"></td>
          </tr>
		  <tr> 
            <td class="text">{$lang_hits}：</td>
            <td colspan="2" class="input"><input name="hits" type="text" class="text mid" size="10"  value="$news_list[hits]"><span class="tips">{$lang_modhits}</span></td>
          </tr>
		  <tr> 
            <td class="text">{$lang_addtime}：</td>
            <td colspan="2" class="input"><input name="addtime" type="text" class="text" value="$news_list[addtime]"><span class="tips">{$lang_modtimenow}$m_now_date {$lang_modtimenow1}</span></td>
          </tr>
		  <tr> 
            <td class="text">{$lang_updatetime}：</td>
            <td colspan="2" class="input"><input name="updatetime" type="text" class="text" value="$m_now_date"><span class="tips">{$lang_modtimenow}$m_now_date {$lang_modtimenow1}</span></td>
          </tr>
<!--
EOT;
if($met_member_use){
echo <<<EOT
-->		  

		  <tr> 
            <td class="text">{$lang_webaccess}：</td>
            <td class="input" colspan="2" ><select name="access" id="access" > {$level} </select></td>
          </tr>
<!--
EOT;
}
echo <<<EOT
-->	
		  <tr> 
				<td class="text"></td>
				<td class="input color390">{$lang_columnSEO}</td>
		  </tr>
		  <tr> 
            <td class="text">{$lang_columnmtitle}</td>
            <td colspan="2" class="input">
				<input name="ctitle" type="text" class="text" value="$news_list[ctitle]"><span class="tips">{$lang_ctitleinfo}</span>
			</td>
          </tr>
		  <tr> 
            <td class="text">{$lang_keywords}：</td>
            <td colspan="2" class="input"><input name="keywords" type="text" class="text" size="40"  value="$news_list[keywords]"><span class="tips">{$lang_descriptioninfo},{$lang_keywordsinfo}</span></td>
          </tr>
		  <tr> 
            <td class="text">{$lang_description}：</td>
            <td class="input" colspan="2"><textarea name="description" class="textarea gen" cols="60" rows="5" >$news_list[description]</textarea>
			</td>
			</tr> 
		  <tr> 
            <td class="text">{$lang_columnhtmlname}：</td>
            <td colspan="2" class="input">
			<input name="filename" type="text" class="text med" size="40"  value="$news_list[filename]">
			<span class="tips">{$lang_columntip14}</span></td>
          </tr>
		  <tr> 
				<td class="text"></td>
				<td class="input color390">{$lang_contentdetail}</td>
		  </tr>
			 <tr> 
            <td class="input" colspan="2">
<script type="text/javascript" src="../../ckeditor/ckeditor.js"></script>
			<textarea class="ckeditor" name="content">$news_list[content]</textarea>
<script type="text/javascript">
met_ckeditor('$depth','content');
</script>
</td></tr>
		   

		  <tr> 
            <td class="text"></td>
	      <td class="submit"><input type="submit" name="Submit" value="{$lang_Submit}" class="submit" onclick="return Smit($(this),'myform');" />
		  </td>
          </tr>
		<tr>
		  <td class="footer" colspan="2">$foot</td>
	  </tr>
</table>
</form>
</body>
</html>
<!--
EOT;
# This program is an open source system, commercial use, please consciously to purchase commercial license.
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
?>-->